export const fulldateFormat=(date,operator)=>{
    if(operator){
        switch(operator){
            case '-':
                return `${date.getFullYear()}-${(date.getMonth()+1)<10?"0"+(date.getMonth()+1):(date.getMonth()+1)}-${date.getDate()<10?"0"+date.getDate():date.getDate()}`
            case '/':
                return `${date.getFullYear()}/${(date.getMonth()+1)<10?"0"+(date.getMonth()+1):(date.getMonth()+1)}/${date.getDate()<10?"0"+date.getDate():date.getDate()}`
        }  
    }
}